package com.mercury.ec.module.air.controller.admin.order.vo.orderroute;

import com.mercury.ec.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static com.mercury.ec.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static com.mercury.ec.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 机票订单行程分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AirOrderRoutePageReqVO extends PageParam {

    @Schema(description = "订单id", example = "29387")
    private Long orderId;

    @Schema(description = "序号")
    private Integer serialNo;

    @Schema(description = "原行程id", example = "9870")
    private Long originOrderRouteId;

    @Schema(description = "航司代码")
    private String airlineNo;

    @Schema(description = "承运航司代码")
    private String carrierAirlineNo;

    @Schema(description = "航班号")
    private String flightNo;

    @Schema(description = "舱位")
    private String cabin;

    @Schema(description = "出发机场三字码")
    private String depart;

    @Schema(description = "抵达机场三字码")
    private String arrive;

    @Schema(description = "航班日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] flightDate;

    @Schema(description = "抵达日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] arriveDate;

    @Schema(description = "出发时间(HH:mm)")
    private String departTime;

    @Schema(description = "抵达时间(HH:mm)")
    private String arriveTime;

    @Schema(description = "出发航站楼")
    private String departTerminal;

    @Schema(description = "抵达航站楼")
    private String arriveTerminal;

    @Schema(description = "机型")
    private String airModel;

    @Schema(description = "机型名称")
    private String airModelName;

    @Schema(description = "行李额")
    private String baggageWeight;

    @Schema(description = "是否提供餐食")
    private Boolean haveFood;

    @Schema(description = "餐食类型", example = "快餐")
    private String foodType;

    @Schema(description = "是否经停")
    private Boolean stop;

    @Schema(description = "经停开始日期", example = "2022-01-01")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate stopStartDate;

    @Schema(description = "经停结束日期", example = "2022-01-01")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate stopEndDate;

    @Schema(description = "经停开始时间", example = "08:00")
    private String stopStartTime;

    @Schema(description = "经停结束时间", example = "18:00:00")
    private String stopEndTime;

    @Schema(description = "经停机场三字码", example = "SHA")
    private String stopAirportNo;

    @Schema(description = "经停航站楼", example = "T1")
    private String stopTerminal;

    @Schema(description = "是否共享航班")
    private Boolean share;

    @Schema(description = "是否通程航班", example = "true")
    private Boolean through;

    @Schema(description = "准点率")
    private BigDecimal punctualityRate;

    @Schema(description = "飞行距离")
    private Integer distance;

    @Schema(description = "飞行天数", example = "1")
    private Integer flightDays;

    @Schema(description = "飞行时间")
    private String flightTimes;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "编码航段状态")
    private String routeStatus;
}
